#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ftpmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void onUploadFinished(bool sucess,const QString& errorMsg);
private:
    Ui::MainWindow *ui;
    FtpManager* m_ftpManager;
    //bool ftp_upload(const QString& ftp_url,const QString& username,const QString& password,const QString& local_file_path,const QString& remote_file_path);
};
#endif // MAINWINDOW_H
